//
//  TestCalendarRange.m
//  WebClipper
//
//  Created by Daniel Braun on 01/04/07.
//  Copyright 2007Daniel Braun http://page-appart.net, http://braun.daniel.free.fr  All rights reserved.
//

#import "TestCalendarRange.h"
#import "CalendarRange.h"

int main(int argc, char *argv[])
{
	NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init];
	
	CalendarRange *cr=[CalendarRange calendarRangeWithNaturalLangageString:@"11/04/2007 > 12/7/2007"];
	NSLog(@"got cr %@\n", cr);
	cr=[CalendarRange calendarRangeWithNaturalLangageString:@"du 2/04/97 > 12/7/2003"];
	NSLog(@"got cr %@\n", cr);

	cr=[CalendarRange calendarRangeWithNaturalLangageString:@"11 > 19 Avril trolling"];
	NSLog(@"got cr %@\n", cr);
	cr=[CalendarRange calendarRangeWithNaturalLangageString:@"11 Mars > 19 Avril"];
	NSLog(@"got cr %@\n", cr);
	cr=[CalendarRange calendarRangeWithNaturalLangageString:@"11 Mars > 19 Avril "];
	NSLog(@"got cr %@\n", cr);
	cr=[CalendarRange calendarRangeWithNaturalLangageString:@"11 Mars au 19 Avril 2008"];
	NSLog(@"got cr %@\n", cr);
	cr=[CalendarRange calendarRangeWithNaturalLangageString:@"du 3  au 19 juin"];
	NSLog(@"got cr %@\n", cr);
	cr=[CalendarRange calendarRangeWithNaturalLangageString:@"3..5 JAN"];
	NSLog(@"got cr %@\n", cr);
	cr=[CalendarRange calendarRangeWithNaturalLangageString:@"13 FEVr..25 JUIL"];
	NSLog(@"got cr %@\n", cr);
	[pool release];
	return 0;
}